/* TCSS 590A - Cybernetics and Systems
 * Group Project - Modeling
 * By Barry Jones, Naren Meadem, Michael Pitts, Yuan Tao
 * Fall 2012, University of Washington, Tacoma
 */
package model.delayed;


/**
 * Generates an Event object by using the generate() and delay() methods.
 * @author Michael Pitts
 * @version Nov 16, 2012
 */
public abstract class EventGenerator implements Generator
{

	public Event getEvent(final long the_time)
	{
		final long value = generate(the_time);
		if (value != 0) return new Event(value, delay(the_time)+the_time);
		return null;
	}
}
